########################################################
#
# Make file script for my-nova
# Author: WangYongdong
# Mail: jjjarod@gmail.com
#
########################################################

V_FILE= pre_vlog.f
TB_MODULE= nova_tb

ncsim_pre: pre_sim_done
	ncsim -update -nowarn DLCPTH $(TB_MODULE)

pre_sim pre_sim_done: pre_vlog.f
	ncvlog -nowarn DLCPTH -nowarn RECOMP -incdir ../rtl -LOGFILE ncvlog.log -errormax 15 -update -f $(V_FILE)
	ncelab -nowarn DLCPTH -nowarn RECOMP -errormax 15 -update -access +wc $(TB_MODULE)
	touch pre_sim_done

clean:
	-rm -rf INC* nc* *.trn *.dsn pre_sim_done